package service.impl;

import mapper.NoticeMapper;
import org.springframework.stereotype.Service;
import pojo.Notice;
import service.NoticeService;

import javax.annotation.Resource;
import java.util.List;
@Service("noticeService")
public class NoticeServiceImpl implements NoticeService {
    @Resource
    private NoticeMapper noticeMapper;
    @Override
    public int insert(String author,String tittle,String time,String content) {
        return noticeMapper.insert(author,tittle,time,content);
    }
    @Override
    public List<Notice> select() {
        return noticeMapper.select();
    }
}
